﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
    <asp:DataList ID="dtlItems" runat="server" DataSourceID="LinqDataSource1" 
    RepeatColumns="2" RepeatLayout="Flow" CssClass="entry">
        <ItemTemplate>
            author:
            <asp:Label ID="authorLabel" runat="server" Text='<%# Eval("author") %>' />
            <br />
            name:
            <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' />
            <br />
            image_url:
            <asp:Label ID="image_urlLabel" runat="server" Text='<%# Eval("image_url") %>' />
            <br />
            notes:
            <asp:Label ID="notesLabel" runat="server" Text='<%# Eval("notes") %>' />
            <br />
            price:
            <asp:Label ID="priceLabel" runat="server" Text='<%# Eval("price") %>' />
            <br />
            orderdetails:
            <asp:Label ID="orderdetailsLabel" runat="server" 
                Text='<%# Eval("orderdetails") %>' />
            <br />
<br />
        </ItemTemplate>
    </asp:DataList>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
    ContextTypeName="BookStoreDataContext" EntityTypeName="" OrderBy="category_id" 
    Select="new (author, name, image_url, notes, price, orderdetails)" 
    TableName="items">
    </asp:LinqDataSource>
</asp:Content>

